<template>
  <el-dialog
    width="75%"
    :title=" '详情页'"
    :close-on-click-modal="false"
    :visible.sync="visible"

  >
    <div style="height: 400px" >
      <!--表格渲染-->
      <el-table :data="dataList" size="small" border style="text-align-all: center" :header-cell-style="{background:'#EAE9E9FF'}">
        <el-table-column prop="nickname" label="用户名称"/>
        <el-table-column prop="realName" label="真实姓名"/>
        <el-table-column prop="bankName" label="开户行"/>
        <el-table-column prop="bankAddress" label="开户支行"/>
        <el-table-column prop="phone" label="手机号"/>
        <el-table-column prop="bankCode" label="账号"/>
        <el-table-column prop="createTime" label="添加时间"/>
        </el-table>
    </div>
  </el-dialog>
</template>

<script>
import { info } from '@/api/ums/bank'

export default {
  name: 'showDetail',
  data() {
    return {
      visible: false,
      dataList: [],
      dataForm: {
        id: '',
        isDelete: '',
        createBy: '',
        updateBy: '',
        createTime: '',
        updateTime: '',
        remark: '',
        uid: '',
        nickname: '',
        realName: '',
        bankName: '',
        bankAddress: '',
        bankCode: '',
        phone: '',
      }
    }
  },
  methods: {
    init(id) {
      this.dataForm.id = id || 0
      this.visible = true
      this.$nextTick(() => {
        if (this.dataForm.id) {
          info(this.dataForm.id).then(res => {
            this.dataList = [res.data]
          })
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
